import request from '@/utils/request'

// 分页查询
export function adminList(data) {
  return request({
    url: '/admin/permission/user',
    method: 'post',
    data: data
  })
}

// 新增管理员
export function store(data) {
  return request({
    url: '/admin/permission/user/store',
    method: 'post',
    data: data
  })
}

// 更新管理员信息
export function update(data, id) {
  return request({
    url: `/admin/permission/user/update/${id}`,
    method: 'put',
    data: data
  })
}

// 删除管理员账户
export function destroy(id) {
  return request({
    url: `/admin/permission/user/destroy/${id}`,
    method: 'delete'
  })
}
